package models

import (
	"github.com/astaxie/beego"
	"log"
)

func LogRequest(c *beego.Controller) {

	input := c.Ctx.Input

	uri := input.URI()
	method := input.Method()
	contentType := input.Header("content-type")
	body := input.RequestBody

	log.Printf(`--------------
		uri: %s
		method: %s
		contentType: %s
		body: %s
	---------------`, uri, method, contentType, body)
}
